package com.zzj.Test;

import com.zzj.ServiceImpl.BuyServiceImpl;
import com.zzj.bean.BuyBean;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.time.LocalDateTime;

@SpringBootTest
public class Test01 {
    @Autowired
    private BuyServiceImpl service;
    @Test
public void test(){
   String time="2022-04-10T16:00:00.000Z";
        String s = time.substring(0, time.length() - 5);
        System.out.println(s);
}
}
